package com.sclibackup.service.impl;

import java.math.BigDecimal;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sclibackup.common.DataSourceChange;
import com.sclibackup.dao.TSaveDatetimeMapper;
import com.sclibackup.model.TSaveDatetime;
import com.sclibackup.service.ITsaveDatetimeService;

@Service
public class TsaveDateTimeServiceImpl implements ITsaveDatetimeService{
	
	@Autowired
	private TSaveDatetimeMapper tsdMapper;

	@Override
//	@DataSourceChange(slave = false)
	public TSaveDatetime getPreDate(int tsdId) {
		
		return tsdMapper.selectByPrimaryKey(new BigDecimal(tsdId));
	}

	@Override
	public int updateTsaveDateTime(TSaveDatetime tsd) {
		return tsdMapper.updateByPrimaryKeySelective(tsd);
	}

}
